package com.yue.rpc.impl;

import com.yue.rpc.RpcServiceTest;
import com.yue.rpc.TestMessage;
import lombok.extern.slf4j.Slf4j;

/**
 * @author shuang.kou
 * @createTime 2020年05月10日 07:52:00
 */
@Slf4j
public class RpcServiceImpl2 implements RpcServiceTest {

    static {
        System.out.println("RpcServiceImpl2被创建");
    }

    @Override
    public String testRpc(TestMessage message) {
        log.info("RpcServiceImpl2收到: {}.", message.getMessage());
        String result = "Test Description  is " + message.getDescription();
        log.info("RpcServiceImpl2返回: {}.", result);
        return result;
    }
}
